package com.czk.api;

import com.comon.czk.entity.Result;
import com.czk.shop.pojo.TradeGoods;
import com.czk.shop.pojo.TradeGoodsNumberLog;

/**
 * @Author:ChenZhangKun
 * @Date: 2020/9/18 21:08
 */
public interface IGoodsService {
    /**
     * 商品是否存在
     * @param goodsId
     * @return
     */
    TradeGoods findOne(Long goodsId);

    /**
     * 扣减库存
     * @param goodsNumberLog
     * @return
     */
    Result reduceNum(TradeGoodsNumberLog goodsNumberLog);
}
